package cn.myjerry.others.commons;
/**
 * 商品类
 * @author Jerry
 *
 */
public class Goods {
	private String Name;
	private double Price;
	private boolean discount;
	public Goods() {
	}
	public Goods(String name, int price, boolean discount) {
		super();
		Name = name;
		Price = price;
		this.discount = discount;
	}
	/**
	 * @return the name
	 */
	public String getName() {
		return Name;
	}
	/**
	 * @param name the name to set
	 */
	public void setName(String name) {
		Name = name;
	}
	/**
	 * @return the price
	 */
	public double getPrice() {
		return Price;
	}
	/**
	 * @param price the price to set
	 */
	public void setPrice(double price) {
		Price = price;
	}
	/**
	 * @return the discount
	 */
	public boolean isDiscount() {
		return discount;
	}
	/**
	 * @param discount the discount to set
	 */
	public void setDiscount(boolean discount) {
		this.discount = discount;
	}
	/* (non-Javadoc)
	 * @see java.lang.Object#toString()
	 */
	@Override
	public String toString() {
		return "Goods [Name=" + Name + ", Price=" + Price + ", discount=" + discount + "]";
	}
}
